package com.lj.bruth;

import cn.hutool.cron.CronUtil;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.config.CronTask;
import org.springframework.scheduling.config.Task;

import java.util.Date;

@SpringBootApplication
@ComponentScan(basePackages = {"com.lj.bruth.*"})
public class BruthApplication {

    private static final Log log = LogFactory.get();

    public static void main(String[] args) {
        SpringApplication.run(BruthApplication.class, args);
        // 支持秒级别定时任务
        CronUtil.setMatchSecond(true);
        CronUtil.start();
    }


}
